Skip to content

feat(useCounter): add useCounter hook#206

Merged
seungrodotlee merged 3 commits into
toss:mainfrom
JeongHwan-dev:feat/add-use-counter
Apr 24, 2025
Merged

feat(useCounter): add useCounter hook#206
seungrodotlee merged 3 commits into
toss:mainfrom
JeongHwan-dev:feat/add-use-counter

Conversation

@JeongHwan-dev
Copy link
Copy Markdown
Contributor

Overview

Add useCounter hook: useCounter is a React hook that manages a numeric counter state with increment, decrement, and reset capabilities. Optionally, you can provide minimum and maximum values to constrain the counter's range.

Checklist

  • Did you write the test code?
  • Have you run yarn test:coverage to make sure there is no uncovered line?
  • Did you write the JSDoc?

Copy link
Copy Markdown
Contributor

@seungrodotlee seungrodotlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

p. s. You don't have to write docs because it will auto generated by GitHub Action

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (2e2d480) to head (47eb3dc).
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #206   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           32        33    +1     
  Lines          800       840   +40     
  Branches       240       253   +13     
=========================================
+ Hits           800       840   +40     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@seungrodotlee seungrodotlee merged commit 317d8ff into toss:main Apr 24, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants